package com.dkm.dkmproject.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 钱包表
 * </p>
 *
 * @author 周佳佳
 * @since 2020-04-26
 */
@TableName("wallet_tb")
public class WalletTb extends Model<WalletTb> {

    private static final long serialVersionUID = 1L;

    /**
     * 钱包主键
     */
	@TableId(value="wa_id", type= IdType.AUTO)
	private Integer waId;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 余额
     */
	private BigDecimal money;


	public Integer getWaId() {
		return waId;
	}

	public void setWaId(Integer waId) {
		this.waId = waId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	@Override
	protected Serializable pkVal() {
		return this.waId;
	}

	@Override
	public String toString() {
		return "WalletTb{" +
			"waId=" + waId +
			", userId=" + userId +
			", money=" + money +
			"}";
	}
}
